package com.party.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;

/**
 * <p>
 * banner

 * </p>
 *
 * @author ccl
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PbBanner对象", description="banner")
public class PbBanner extends Model<PbBanner> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "主题")
    private String theme;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "描述")
    private String description;

    //@NotEmpty(message = "年份不能为空")
    @ApiModelProperty(value = "年份")
    private String nian;

    //@NotEmpty(message = "月份不能为空")
    @ApiModelProperty(value = "月份")
    private String month;

    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "跳转地址")
    private String target;

    @ApiModelProperty(value = "轮播图位置")
    private Integer position;

    @ApiModelProperty(value = "状态 0 下线 1 上线")
    private Integer status;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "banner 类型 1-自控电台 2-党建风采 3-轮播海报 4-主题日历 5-党建书城轮播图 6-红色回响轮播图")
    private Integer type;

    @ApiModelProperty(value = "跳转地址")
    private String videoUrl;

    @ApiModelProperty(value = "操作人id")
    private String operatorId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "设备编码")
    private String deviceCode;

    @ApiModelProperty(value = "渠道 1-PC 2-小程序")
    private Integer channel;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
